package com.zxy.ziems.server.budget.convertor;

import com.zxy.ziems.server.budget.pojo.dto.BudgetDefDTO;
import com.zxy.ziems.server.budget.pojo.entity.BudgetDefEntity;
import com.zxy.ziems.server.budget.pojo.vo.BudgetManagerVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface BudgetDefConvertor {
    BudgetDefConvertor INSTANT = Mappers.getMapper(BudgetDefConvertor.class);

    BudgetDefEntity dto2Entity(BudgetDefDTO budgetDefDTO);

    BudgetManagerVO entity2VO(BudgetDefEntity entity);
}
